package com.amazon.shop.bean.dto;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import com.amazon.shop.bean.dto.BaseGroup.*;
import lombok.Data;

/**
 * 创建时间：10:54 2021/3/17
 *
 * @author lzj
 * @since JDK 1.8.0_171
 * 类说明：
 * <p>
 * Modification History:
 * Date         Author          Version            Description
 * ---------------------------------------------------------*
 */
@Data
public class StoreForm extends BaseDTO {

    /**
     * 店铺id
     */
    @NotNull(groups = {update.class,del.class},message="id 必传")
    private Integer id;

    /**
     * 用户id
     */
    @NotNull(groups = {add.class},message="userid 必传")
    private Integer userid;

    /**
     * 店铺名称
     */
    @NotEmpty(groups = {add.class},message="storename 必传")
    private String storename;

    /**
     * 店铺描述
     */
    @NotEmpty(groups = {add.class},message="storemsg 必传")
    private String storemsg;

    /**
     * 店铺邮箱
     */
    @NotEmpty(groups = {add.class},message="email 必传")
    private String email;

    /**
     * 店铺密码
     */
    @NotEmpty(groups = {add.class},message="emailpwd 必传")
    private String emailpwd;

    /**
     * 邮箱host(不同邮箱host不同)
     */
    @NotEmpty(groups = {add.class},message="emailhost 必传")
    private String emailhost;

    /**
     * 邮箱协议端口
     */
    @NotNull(groups = {add.class},message="emailprot 必传")
    private Integer emailprot;

    private String mid;

}
